package com.zw.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zw.common.entity.product.SkuInfoEntity;
import com.zw.common.utils.PageUtils;
import com.zw.common.vo.product.SkuItemVO;

import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * sku信息
 *
 * @author zw
 * @email Alisinngai@gmail.com
 * @date 2023-06-11 23:54:02
 */
public interface SkuInfoService extends IService<SkuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveSkuInfo(SkuInfoEntity skuInfoEntity);

    PageUtils queryPageByCondition(Map<String, Object> params);

    List<SkuInfoEntity> querySkusBySpuId(Long spuId);

    SkuItemVO item(Long skuId) throws ExecutionException, InterruptedException;

    List<SkuInfoEntity> getByIds(Collection<Long> skuIds);
}

